
package de.unihannover.se.restlab.microblog_client.models;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "link")
@XmlAccessorType(XmlAccessType.FIELD)
public class Link {
	@XmlAttribute
	private String href;
	@XmlAttribute
	private String rel;

	public Link (String href, String rel) {
		super();
		this.href = href;
		this.rel = rel;
	}

	public Link () {
	}

	public String getRel () {
		return rel;
	}

	public String getHref () {
		return href;
	}

	public void setHref (String href) {
		this.href = href;
	}

	public void setRel (String rel) {
		this.rel = rel;
	}

	@Override
	public String toString () {
		return "Link [href=" + href + ", rel=" + rel + "]";
	}

}
